const newsModel = require('./../../service/news');

module.exports = {
  async index(ctx) {
    // ctx.body = '主页';
    let newData = await newsModel.getData();
    await ctx.render('./news/index.pug', {
      newData
    });
  }
}